﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpages/Admin.Master" AutoEventWireup="true" CodeBehind="EditSelectedNation.aspx.cs" Inherits="cnFederal.Admin.EditSelectedNation" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            height: 99px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

 

 <script language="javascript" type="text/javascript">
     function PrevImg(imgFile) {
         var Preview = document.getElementById('MainContent_imageSelected');
         Preview.src = imgFile.value;
         Preview.style.width = "100px";
         Preview.style.height = "100px";

     }
    </script>

    <script type="text/javascript">
        function setHeight(txtdesc) {
            txtdesc.style.height = txtdesc.scrollHeight + "px";
        }
</script>

      <table width="100%">
        <tr><td align ="center">
            <asp:Label ID="Label1" runat="server" Text="ایجاد و تغییر مطلب در مورد ملت" Font-Bold="True" Font-Size="12"></asp:Label>
    
            </td></tr>
        </table>

    <Table runat="server" id="MainTable">

    <tr><td>Date registreded</td><td>   
        <asp:TextBox ID="txtRegDate" width="170px" ReadOnly="true"
            runat="server" ToolTip="Kalendar" 
              AutoPostBack="false"  Text ='' TabIndex="1"></asp:TextBox>
             
        
         </td></tr>


         <tr><td>Page-Language</td>
         
         <td>
         <table> <tr> <td>   <asp:DropDownList ID="DropDownListType" runat="server" 
                 TabIndex="2">
             <asp:ListItem Text="Farsi" Value="Farsi"> </asp:ListItem>
             <asp:ListItem Text="English" Value="English"> </asp:ListItem>
             
             </asp:DropDownList></td>
         
         
         <td>Nation </td><td>
             <asp:DropDownList ID="DropDownListNations" runat="server" 
                 onselectedindexchanged="DropDownListNations_SelectedIndexChanged" 
                 TabIndex="3">
              <asp:ListItem Text="Arab" Value="1"> </asp:ListItem>
               <asp:ListItem Text="Balouch" Value="2"> </asp:ListItem>
                <asp:ListItem Text="Bakhtyari" Value="3"> </asp:ListItem>
                 <asp:ListItem Text="Fars" Value="4"> </asp:ListItem>
                  <asp:ListItem Text="Kurd" Value="5"> </asp:ListItem>
                   <asp:ListItem Text="Turk" Value="6"> </asp:ListItem>
                    <asp:ListItem Text="Turkman" Value="7"> </asp:ListItem>
             </asp:DropDownList>
         </td></tr></table>

          
         </td>


         </tr>
         <tr><td>Category</td>
         <td>
         <table><tr>
         <td>
         <asp:DropDownList ID="DropDownListCategory" runat="server" 
                 onselectedindexchanged="DropDownListCategory_SelectedIndexChanged" 
                 TabIndex="4">

             <asp:ListItem Text="Information" Value="Information"> </asp:ListItem>
             <asp:ListItem Text="Parties" Value="Parties"> </asp:ListItem>
             <asp:ListItem Text="Parties" Value="Parties"> </asp:ListItem>
             <asp:ListItem Text="News" Value="News"> </asp:ListItem>
             <asp:ListItem Text="Articles" Value="Articles"> </asp:ListItem>

             
             </asp:DropDownList>
         </td>
         
         <td> 
             <asp:RadioButton ID="RadioButtonEnable" Text="Enable View" Checked="true" 
                 runat="server" AutoPostBack="True" GroupName="display" 
                 oncheckedchanged="RadioButtonEnable_CheckedChanged" TabIndex="5" /></td>
         <td><asp:RadioButton ID="RadioButtonDisable" Text="Disable View" Checked="false" 
                 runat="server" GroupName="display" 
                 oncheckedchanged="RadioButtonDisable_CheckedChanged" TabIndex="6" /></td>
         </tr></table>

             
         </td>
         
         </tr>
           <tr><td>Title</td><td> 
           <asp:UpdatePanel runat="server" id="UpdatePanelTitle" updatemode="Conditional"><ContentTemplate  >
               <asp:TextBox ID="txtTitle" width="500px" runat="server" ToolTip="Title" style="direction:rtl;"
              AutoPostBack="True"  Text ='' TabIndex="7" Height="58px" TextMode="MultiLine" 
                   ControlToValidate="txtTitle" ontextchanged="txtTitle_TextChanged"></asp:TextBox>
                     </ContentTemplate></asp:UpdatePanel>
         </td></tr>

         <tr><td>Header</td><td>  
                   
                    
                    
               <asp:TextBox ID="txtHeader" width="500px" runat="server" ToolTip="Header" style="direction:rtl;"
              AutoPostBack="True"  Text ='' TabIndex="8" Height="52px" TextMode="MultiLine" 
                   ontextchanged="txtHeader_TextChanged"></asp:TextBox>
        
         </td></tr>

             <tr style="overflow:auto;"><td>Content</td><td style="overflow:auto;">   
              
              <asp:UpdatePanel runat="server" id="UpdatePanel2" updatemode="Conditional">
                    <ContentTemplate>

                   
               <asp:TextBox ID="txtContent" width="500px" runat="server" ToolTip="Content" style="direction:rtl;  overflow:inherit;"
              AutoPostBack="True"  Text ='' TabIndex="9" Height="200px" TextMode="MultiLine" 
                     onkeyup="setHeight(this);" onFocus="setHeight(this);" 
                     ontextchanged="txtContent_TextChanged"></asp:TextBox>
         </ContentTemplate>
                    </asp:UpdatePanel>
         </td></tr>



         <tr><td>Image</td>
         <td>
         
         <asp:FileUpload ID="fileupload1" runat="server" onchange="PrevImg(this)" 
                 TabIndex="10" />
         
             <asp:Button ID="btnBrows" runat="server" Text="Refresh img" 
                 onclick="btnBrows_Click" TabIndex="11" />
             <asp:Image ID="imageSelected" runat="server" ImageUrl = '<%# Eval("ImageUrl") %> ' Height="100px" Width="100px"  />
             
         </td></tr>
         <tr><td>Author</td>
         <td>
             <asp:DropDownList ID="DropDownListAuthor" runat="server" 
                 onselectedindexchanged="DropDownListAuthor_SelectedIndexChanged" 
                 TabIndex="12">
             </asp:DropDownList>
         </td>
         </tr>

         <tr>
         <td class="style1">
             <asp:Button ID="btnSubmit" runat="server" Text="Save" 
                 onclick="btnSubmit_Click" TabIndex="13"/></td>
         <td class="style1">
             <asp:Label ID="Label_Error" runat="server" ForeColor="Red"></asp:Label>
             </td>
         </tr>


   
    </Table>








</asp:Content>
